package cn.web.tunnelrobot.service;

import cn.web.tunnelrobot.pojo.User;

import javax.servlet.http.HttpSession;
import java.util.HashMap;

/**
 * 用户
 * @author LiYongShun
 * @version 1.0.0
 *
 */
public interface UserService {
    HashMap<String, Object> getUserInfo(User user, HttpSession session) throws Exception;

    HashMap<String, Object> register(User user) throws Exception;

    HashMap<String, Object> examUser(Integer usId, Integer usExam, String usComment);

    HashMap<String, Object> updateUserInfo(String usAccount,String phoneCode,String usPassword,Integer type);

    HashMap<String, Object> deleteUserByUsId(Integer usId);

    HashMap<String, Object> getUserList(String usName, String usDepartment, String usExam, String usAccount, Integer pageNo, Integer pageSize);

    HashMap<String, Object> getUserListNoWorkArea();

    HashMap<String, Object> getUserInfoByUsId(Integer usId);

    HashMap<String, Object> batchExam(Integer[] usId, Integer usExam, String usComment);

    HashMap<String, Object> updateUserInfoById(User user);

    HashMap<String, Object> getUserListExam();

    HashMap<String,Object>  ControlRoleById(Integer usId,Integer usRole);

}
